# include <stdio.h>
int main()
{
	int a,b,c;
	a=b=c=0 ;
	char ch;
    while((ch = getchar())!='\n')
    {
    	//putchar(ch);
    
    	if (ch>='A'&&ch<='Z')
    	a++;
    	else if (ch>='a'&&ch<='z')
    	a++;
    	else if (ch>='0'&&ch<='9')
    	b++;
    	else
    	c++;
	}
	printf("%d,%d,%d",a,b,c);
	return 0;
}
